package com.erp.remote.sale.information;

import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description:
 * @Author: lyj
 * @Date: 2025/7/1 8:42
 */
@RequestMapping("/information/user")
public interface MyUserRemote {

    /**
     * @description: 根据companyId查询所有的职员/用户 
     * @author: lyj
     * @date: 2025/7/18 
     * @param: [companyId]
     * @return: com.erp.util.AjaxResult
    **/
    @RequestMapping("/selectUserByCompanyId")
    AjaxResult selectUserByCompanyId(@RequestParam("companyId") Integer companyId);

    //通过联系人或客户名称查找用户ID
    @GetMapping("/byNme")
    List<Integer> getIdByNameOrContactName(String name);
    
}
